home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1999 February / MACPOWER-1999-02.ISO.7z / MACPOWER-1999-02.ISO / 9902⁄AMUG / EDUCATION / Area Properties 3.51.sit / Read Me - Area Properties 3.5 < prev    next >
Text File  |  1998-10-08  |  8KB  |  152 lines

  1.         What is "Area Properties" and what does it do ?
  2.  
  3.  
  4.  It will do the following;
  5.  
  6.         It will calculate and measure the following properties of any object you load
  7.         from a PICT or PNT document; (Objects can also be imported from the Clipboard.) 
  8.  
  9.         1.  CROSS SECTIONAL AREA
  10.         2.  TOTAL SURFACE AREA
  11.         3.  TOTAL PERIMETER
  12.         4.  MOMENT OF INERTIA about the centroidal axis & any axis
  13.         5.  PRODUCT OF INERTIA about the centroidal axis & any axis
  14.         6.  PRINCIPAL MOMENTS OF INERTIA, Imax & Imin
  15.         7.  PRINCIPAL AXES OF area
  16.         8.  RADIUS OF GYRATION
  17.         9.  VOLUME
  18.         10  WEIGHT
  19.         11  MEASURE HEIGHT & WIDTH
  20.         12  PROVIDES RULER TO OBTAIN LENGTH MEASUREMENTS
  21.         13  WILL COLLAPSE OBJECT ON BOTH X & Y AXIS
  22.         14  COUNTS TOTAL OBJECT PIXELS
  23.         
  24.         The object itself and the UNITS, DEPTH, SCALE & MATERIAL are user inputs. They
  25.         can be made the defaults with the Preferences... menu item.
  26.  
  27.         SCALE is defined as actual object size divided by screen size. (If actual object width
  28.         is 12 inches and screen image width of object is 1 inch, the SCALE = 12.)
  29.  
  30.         Portions of the screen object can be isolated by using shift-click-drag to select only
  31.         the portion of the object that is of interest. Place the cursor at the upper left corner
  32.         of region of interest and shift-click-drag to lower right corner of interest.
  33.         
  34.         The results can be saved to disk as a PICT file.
  35.  
  36.  
  37.         NOMENCLATURE:
  38.  
  39.         x          -   x coordinate.(horizontal axis                            
  40.         x centroid -   x coordinate of the center of area of a homogeneous plate.
  41.         y          -   y coordinate.(vertical axis)
  42.         y centroid -   y coordinate of the center of area of a homogeneous plate.
  43.         r          -   square root of (x^2 + y^2).
  44.         I_xcg      -   moment of inertia of area section re. x centroidal axis.
  45.         I_x        -   moment of inertia of area section re. x axis.
  46.         I_ycg      -   moment of inertia of area section re. y centroidal axis.
  47.         I_y        -   moment of inertia of area section re. y axis.
  48.         Imax, Imin -   principal moments of inertia of the area about the x, y axis origin.
  49.         prin_axis  -   principal axes of the area about the x, y axis origin.
  50.         J_cg polar -   polar moment of inertia of area section re. centroidal axis.
  51.         J_r        -   polar moment of inertia of area section re. centroidal origin.
  52.         P_xycg     -   product of inertia of area section re. x, y centroidal axis.
  53.         P_xy       -   product of inertia of area section re. x, y axis origin.
  54.         k_xcg      -   radius of gyration of area section re. x centroidal axis.
  55.         k_ycg      -   radius of gyration of area section re. y centroidal axis.
  56.         k_cg polar -   polar radius of gyration of area section re. centroidal axis.
  57.             
  58.             
  59.  
  60.         NOTES: 
  61.           1       All BLACK or dark pixels are considered included in the object.
  62.                 Objects must be filled in (do not use hollow or outlined shapes). See the
  63.                 example objects in folder "Area Examples"
  64.  
  65.                 All WHITE or light colored pixels are void. USE the provided MENU
  66.                 selection "MAKE ALL COLORS BLACK" or "COLOR EDITOR" to convert a
  67.                 colored object to BLACK prior to starting any calculations.
  68.  
  69.           2       The apple CONTROL STRIP (control panel) or any other 3rd party floating
  70.                 windoid must be turned off or made invisible so as to not be included
  71.                 as part of your object.
  72.  
  73.           3       The minor jagged edges of an image will be corrected. All screen images are 
  74.                 made with square pixels making a perfect circle impossible to draw. One pixel  
  75.                 jaggies will be corrected, but larger jaggies will go uncorrected. This is why
  76.                 the Area Properties calculated area of a 4" diameter circle screen image will
  77.                 not equal the exact 12.567 in^2, but will be 12.54 in^2 instead. The same goes
  78.                 for perimeter calculations.
  79.        
  80.  
  81.         Who might find this application of value ?
  82.  
  83.         1. Engineers
  84.         2. Scientists
  85.         3. Students
  86.         4. Architects
  87.  
  88. "Area Examples"
  89.  
  90.  
  91.  
  92.         coded by:  William Weiss
  93.                    2500 Ptarmigan Dr.#1
  94.                    Walnut Creek, CA. 94595
  95.                    USA
  96.                    email address: WWeissTuna@AOL.com
  97.  
  98.       * -------------------------------------------------------------------------------------- *
  99.       |                                                                                        |
  100.       |  For organizations, that would like "Area Properties" modified to meet their specific  |
  101.       |  set of specifications or include custom features, I accept contract programming work. |
  102.       |                                                                                        |
  103.       |  Comments and suggestions are always welcomed. If you use this code a lot, please make |
  104.       |  a donation to your favorite charity. Thanks & I will look forward to your email .     |
  105.       |                                                                                        |
  106.       * -------------------------------------------------------------------------------------- *
  107.  
  108.  
  109.  
  110.  
  111. /* -------------------------------------------------------------------------------------------- */
  112.   Version 3.5 (10/98)
  113.         ・ Added calculation of Principal moments of inertia (Imax & Imin).
  114.         ・ Added calculation of Principal axes.
  115.         ・ Added color matching fine tuning to COLOR_EDIT menu.
  116.         ・ Added RGB values display to COLOR_EDIT menu items .
  117.         ・ The apple CONTROL STRIP (control panel) will be disabled if present and enabled 
  118.           after "Area Properties" is Quit.
  119. /* -------------------------------------------------------------------------------------------- */
  120.   Version 3.4 (6/98)
  121.         ・ Results can be viewed in either standard or scientific notation. See Number Format
  122.           menu item under File Menu. 
  123.         ・ Added calculation of Product of Inertia.
  124. /* -------------------------------------------------------------------------------------------- */
  125.   Version 3.3 (2/98)
  126.         ・ Added image flip (horizontal & vertical) ability. AP Menu
  127.         ・ Image collapse function (AP Menu) will first convert all image colors to black.
  128.         ・ Fixed printing bug under Mac OS 8.1
  129.         ・ Preferences... menu item will now be enabled after a (Edit menu) paste operation.
  130. /* -------------------------------------------------------------------------------------------- */
  131.   Version 3.2 (4/97)
  132.         ・ Preferences... menu item (File Menu) can now save default units, material, object scale
  133.           and object depth.
  134.         ・ Save As... menu item (File Menu) can save results as a PICT file to disk.
  135.         ・ Maximum screen size that can be accommodated is now 1280 x 1280 pixels.
  136.         ・ Will now work with a MATROX Millennium video card.
  137.         ・ Added water to list of materials.
  138.         ・ Just For Fun menu item will do 3D stuff if screen color set to thousands or millions
  139.           or if greyscale (Monitors and Sound CONTROL PANEL).
  140.         ・ Fixed a bug with the Shift Click Drag selection routine.
  141.         ・ Images imported via the clipboard (Pasted) will be centered on the screen.
  142. /* -------------------------------------------------------------------------------------------- */  
  143.   Version 3.0 (11/96) has added radius of gyration. Also added COLOR EDITOR, which will
  144.         allow selected colors of a color image to be converted to BLACK or deleted or isolated.
  145.         Also added some fun stuff.
  146. /* -------------------------------------------------------------------------------------------- */    
  147.   Version 2.6 now is PPC/68K FAT and uses the Metrowerks C/C++ compiler. Also fixed a bug
  148.           in the "MAKE ALL COLORS BLACK" routine.
  149.  
  150.  
  151.  
  152.